package com.jcfy.project.module.domain;

import java.math.BigDecimal;
import com.jcfy.framework.aspectj.lang.annotation.Excel;
import com.jcfy.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 账户收支明细对象 t_account_detail
 *
 * @author jiangfeng
 * @date 2020-08-05
 */
public class TAccountDetail extends BaseEntity {
    private static final long serialVersionUID=1L;

    /** ID */
    private Long adId;

    /** 用户id */
    @Excel(name = "用户id" )
    private Long userId;

    /** 类型 */
    @Excel(name = "类型" )
    private Integer type;

    /** 订单id */
    @Excel(name = "订单id" )
    private Long orderId;

    /** 金额 */
    @Excel(name = "金额" )
    private BigDecimal amount;

    /** 状态 */
    @Excel(name = "状态" )
    private Integer status;

    public void setAdId(Long adId) {
        this.adId = adId;
    }

    public Long getAdId() {
        return adId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }
    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getAmount() {
        return amount;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("adId" ,getAdId())
            .append("userId" ,getUserId())
            .append("type" ,getType())
            .append("orderId" ,getOrderId())
            .append("amount" ,getAmount())
            .append("remark" ,getRemark())
            .append("createTime" ,getCreateTime())
            .append("updateTime" ,getUpdateTime())
            .append("status" ,getStatus())
            .toString();
    }
}
